package com.ruoyi.system.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("elder")
public class Elder {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer age;
    private String gender;
    private String healthStatus;

    @TableLogic
    private Integer deleted;

    // 房间ID(一对多)
    @TableField("room_id")
    private Long roomId;

    // 关联的房间对象
    @TableField(exist = false)
    private Room room;

    public String getName() {
        return name;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Room getRoom() {
        return room;
    }

    public String getGender() {
        return gender;
    }

    public String getHealthStatus() {
        return healthStatus;
    }

    public void setHealthStatus(String healthStatus) {
        this.healthStatus = healthStatus;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }
}